<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
		<title>localStore</title>
	</head>
	<body>
		<input type="hidden" style="behavior:url(#default#userData)" id="localStorageByIEObj">
	</body>
	<script type="text/javascript">
		document.domain = get_curr_domain(["ituwang.com", "itupic.com"]);
		function get_curr_domain(domain_arr){for(var i=0;i<domain_arr.length;i++){if(document.domain.indexOf(domain_arr[i])!=-1){return domain_arr[i]}}return false};
		var UA_TYPE = navigator.userAgent.match(/chrome|ie 6|ie 7|ie 8|ie 9|ie 10|firefox|safari/i)[0];
		if(UA_TYPE == "IE 6" || UA_TYPE == "IE 7")
		{		
			var __localStorageByIE = function()
			{
				this.checkKey = function(key)
				{
					var type = typeof(key);
					return key != '' && (type == 'string' || type == 'number') ? true : false;
				}
				
				this.__localStorageByIEObj = false;
				
				this.init = function()
				{
					this.__localStorageByIEObj = document.getElementById("localStorageByIEObj");
				}
				
				this.getItem = function(key)
				{
					if(this.checkKey(key) == false)
					{
						return null;
					}
					this.init();
					this.__localStorageByIEObj.load("oXMLBranch");
					return this.__localStorageByIEObj.getAttribute(key);
				}
				
				this.setItem = function(key, value)
				{
					var type = typeof(value);
					if(this.checkKey(key) == false || (type != 'string' && type != 'number'))
					{
						return false;
					}
					this.init();
					this.__localStorageByIEObj.setAttribute(key, value);
					this.__localStorageByIEObj.save("oXMLBranch");
				}
				
				this.removeItem = function(key)
				{
					if(this.checkKey(key) == false)
					{
						return false;
					}
					this.__localStorageByIEObj.removeAttribute(key);
					this.__localStorageByIEObj.save("oXMLBranch");
				}
			}
			var __GLS = new __localStorageByIE();
		}
		else if(typeof(localStorage) == 'object')
		{
			var __GLS = localStorage;
		}
		var N = 0;
		var loop=self.setInterval("callbackStore()", 30);
		function callbackStore()
		{
			if(typeof(parent.setLocalStorageObj) == 'function' && typeof(__GLS) == 'object')
			{
				parent.setLocalStorageObj(__GLS);
				int = clearInterval(loop);
			}
			if(N == 5000)
			{
				int = clearInterval(loop);
			}
			N++;
		}
		
	</script>
</html>